package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品分类
 * </p>
 *
 * @author cyz
 * @since 2022-06-12
 */
@Getter
@Setter
  @ApiModel(value = "Category对象", description = "商品分类")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键 分类id主键")
      @TableId(value = "category_id", type = IdType.AUTO)
      private Integer categoryId;

      @ApiModelProperty("分类名称 分类名称")
      private String categoryName;

      @ApiModelProperty("分类层级 分类得类型， 1:一级大分类 2:二级分类 3:三级小分类")
      private Integer categoryLevel;

      @ApiModelProperty("父层级id 父id 上一级依赖的id，1级分类则为0，二级三级分别依赖上一级")
      private Integer parentId;

      @ApiModelProperty("图标 logo")
      private String categoryIcon;

      @ApiModelProperty("口号")
      private String categorySlogan;

      @ApiModelProperty("分类图")
      private String categoryPic;





}
